/*
 * @Author: xuman
 * @Date: 2020-06-04 17:36:00
 * @LastEditors: xuman
 * @LastEditTime: 2020-06-15 16:50:30
 */
import request from '@/utils/request'
let baseURL = process.env.NODE_ENV === 'production' ? '/api/risk' : '/riskyf'

// 筛选器下拉框
export const getSelectOptions = (data: { type: string[] }) =>
  request({
    baseURL,
    url: '/report/model-statistics/select-down',
    method: 'post',
    data
  })

// 模型总体稳定性监控报表
export const getStabilityReportData = (data?: any) =>
  request({
    baseURL,
    url: '/report/model-statistics/model-overall-stability-monitoring',
    method: 'post',
    data
  })

// 模型总体区分能力监控报表
export const getDistinguishReportData = (data?: any) =>
  request({
    baseURL,
    url: '/report/model-statistics/model-overall-distinguish-monitoring',
    method: 'post',
    data
  })

// 模型特征变量稳定性监控报表
export const getFeatureStabilityReportData = (data?: any) =>
  request({
    baseURL,
    url: '/report/model-statistics/model-feature-stability-monitoring',
    method: 'post',
    data
  })

// 模型特征变量区分能力监控报表
export const getFeatureDistinguishReportData = (data?: any) =>
  request({
    baseURL,
    url: '/report/model-statistics/model-feature-distinguish-monitoring',
    method: 'post',
    data
  })

// 模型分布统计表
export const getModelDistributionReportData = (data?: any) =>
  request({
    baseURL,
    url: '/report/model-statistics/model-distribution-statistics-monitoring',
    method: 'post',
    data
  })
